package com.devosaurusrex.simpleflashcards;

import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root
public class Deck
{
    @Attribute(name="name")
    public String name;
    
    @ElementList(required=false, inline=true)
    public List<Flashcard> cards;

    public Deck()
    {
        super();
    }

    public Deck(String name, List<Flashcard> cards)
    {
        super();
        this.name = name;
        this.cards = cards;
    }
    
    
}
